<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
    <meta content="text/html;charset=UTF-8"/>
    <title sec:authentication="name">home</title>
    <link rel="stylesheet" th:href="@{css/bootstrap.min.css}"/>

</head>
<style type="text/css">
        body {
          padding-top: 50px;
        }
        .starter-template {
          padding: 40px 15px;
          text-align: center;
        }
</style>
<body>
<div class="container">
    <div class="starter-template">

        <div>
            <p class="bg-info">sing success </p>
        </div>

        <div sec:authorize="hasRole('ROLE_ADMIN')">
            <p class="bg-info">恭喜您,您有 ROLE_ADMIN 权限 </p>
        </div>

        <form th:action="@{/ui/logout}" method="post">
            <input type="submit" class="btn btn-primary" value="注销"/>
        </form>
    </div>
</div>
</body>
</html>